<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
	<% String path=request.getContextPath(); String basePath=request.getScheme() + "://" + request.getServerName() + ":"
		+ request.getServerPort() + path + "/" ; %>

		<!DOCTYPE html>
		<html>

		<head>
			<base href="<%=basePath%>">

			<title></title>

			<meta http-equiv="pragma" content="no-cache">
			<meta http-equiv="cache-control" content="no-cache">
			<meta http-equiv="expires" content="0">
			<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
			<meta http-equiv="description" content="This is my page">
			<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

		</head>

		<body>
			<%@ include file="/WEB-INF/jsp/common/header.jsp" %>
				<%@ include file="/WEB-INF/jsp/common/loadDiv.jsp" %>

					<script type="text/javascript">
						$(function () {
							$('#startTime').datebox('setValue', getBeforeCurrentDate90Days());
							$('#endTime').datebox('setValue', getNowFormatDate());
							bindgrid();
						});
					</script>
					<script>
						function del(node) {
							$.ajax({
								type: "delete",
								url: 'purchase/supply/deal/delete?' + 'infId=' + infId + '&' + 'resId=' + resId,
								//                dataType: "xml",				
								success: function (data) {
									$.messager.alert('消息', data.msg);
									$('#add').window('close');
									bindgrid();
								},
								error: function (XMLHttpRequest, textStatus, errorThrown) {
									$.messager.alert('消息', errorThrown);
								}
							});
						}

						function save() {
							if (!$('#fm').form('validate')) {
								return;
							}
							var model = {
								infId: $('#infId').textbox('getValue'),
								inqId: $('#inqId').textbox('getValue'),
								resId: $('#resId').textbox('getValue'),
								gramId: $('#gramId').textbox('getValue'),
								dealIsCheck: $('#dealIsCheck').textbox('getValue'),
								infName: $('#infName').textbox('getValue'),
								infCode: $('#infCode').textbox('getValue'),
								inqGroup: $('#inqGroup').textbox('getValue'),
								inqIsContract: $('#inqIsContract').textbox('getValue'),
								inqContractStart: $('#inqContractStart').textbox('getValue'),
								inqContractEnd: $('#inqContractEnd').textbox('getValue'),
								inqIsSettle: $('#inqIsSettle').textbox('getValue'),
								inqIsWeight: $('#inqIsWeight').textbox('getValue'),
								inqIsOwn: $('#inqIsOwn').textbox('getValue'),
								inqPayment: $('#inqPayment').textbox('getValue'),
								inqCurrency: $('#inqCurrency').textbox('getValue'),
								inqTax: $('#inqTax').textbox('getValue'),
								inqStockAddress: $('#inqStockAddress').textbox('getValue'),
								inqIsFree: $('#inqIsFree').textbox('getValue'),
								inqBackGood: $('#inqBackGood').textbox('getValue'),
								inqOaStatus: $('#inqOaStatus').textbox('getValue'),
								inqSapStatus: $('#inqSapStatus').textbox('getValue'),
								infContact: $('#infContact').textbox('getValue'),
								infContactTel: $('#infContactTel').textbox('getValue'),
								infFirstTotalPrice: $('#infFirstTotalPrice').textbox('getValue'),
								infFirstNum: $('#infFirstNum').textbox('getValue'),
								infFirstUnitPrice: $('#infFirstUnitPrice').textbox('getValue'),
								infLastTotalPrice: $('#infLastTotalPrice').textbox('getValue'),
								infUnitPrice: $('#infUnitPrice').textbox('getValue'),
								infNum: $('#infNum').textbox('getValue'),
								infTransportCost: $('#infTransportCost').textbox('getValue'),
								infTransportPrice: $('#infTransportPrice').textbox('getValue'),
								createTime: $('#createTime').textbox('getValue'),
								createName: $('#createName').textbox('getValue'),
								createId: $('#createId').textbox('getValue'),
								updateId: $('#updateId').textbox('getValue'),
								updateName: $('#updateName').textbox('getValue'),
								updateTime: $('#updateTime').textbox('getValue'),
								delFlag: $('#delFlag').textbox('getValue'),
								status: $('#status').textbox('getValue'),
								remark: $('#remark').textbox('getValue'),
								inqPaymentCode: $('#inqPaymentCode').textbox('getValue'),
								inqCurrencyCode: $('#inqCurrencyCode').textbox('getValue'),
								inqName: $('#inqName').textbox('getValue'),
								deptId: $('#deptId').textbox('getValue'),
								deptName: $('#deptName').textbox('getValue'),
								resCode: $('#resCode').textbox('getValue'),
								resCode1: $('#resCode1').textbox('getValue')
							};
							$.ajax({
								type: "post",
								dataType: "json",
								url: 'purchase/supply/deal/save',
								data: JSON.stringify(model),
								contentType: "application/json",
								success: function (data) {
									if (data.code != 60200) {
										$.messager.alert('消息', data.msg);
									} else {
										$.messager.alert('消息', data.msg);
										let dg = $('#dg');
										dg.datagrid('enableFilter');
										dg.datagrid('load');
										$('#add').window('close');
									}
								},
								error: function (XMLHttpRequest, textStatus, errorThrown) {
									$.messager.alert('消息', errorThrown);
								}
							})

						}

						function editrow() {
							//编辑用户
							var row = $('#dg').datagrid('getSelected');
							if (row) {
								$('#add').window('open');
								$('#fm').form('load', row);

							} else {
								$.messager.alert('消息', '请选中一条数据');
							}
						}
					</script>
					<script>
						/**
														 *  按条件查询报价列表
														 */
						function selectList() {
							var startTime = $('#startTime').datebox('getValue')
							var endTime = $('#endTime').datebox('getValue')
							var status = $('#status').combobox('getValue');
							var dg = $('#dg');
							dg.datagrid('enableFilter');
							dg.datagrid('load', {
								startTime: startTime ? startTime : '',
								endTime: endTime ? endTime : '',
								status: status ? status : ''
							});
						}

						function bindgrid() {
							var startTime = $('#startTime').datebox('getValue')
							var endTime = $('#endTime').datebox('getValue')
							var status = $('#status').combobox('getValue');
							$('#dg').datagrid(
								{
									title: '',
									queryParams: {
										startTime: startTime,
										endTime: endTime,
										status: status
									},
									url: "purchase/supply/deal/selectList",
									iconCls: 'icon-application',
									width: getWidth(0.98),
									height: 400,
									nowrap: true,
									filterDelay: 0,
									rownumbers: true,
									animate: false,
									collapsible: false,
									clientPaging: false,
									remoteFilter: true,
									singleSelect: true,
									pagination: true,
									remoteSort: true,
									frozenColumns: [[{
										field: 'resCode1',
										title: '询价结果编码',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}, {
										field: 'infName',
										title: '供应商名称',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}, {
										field: 'infCode',
										title: '供应商编码',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									},]],
									columns: [[{
										field: 'infFirstTotalPrice',
										title: '报价金额',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val.toLocaleString()) : 0
										}
									},
									{
										field: 'infFirstNum',
										title: '报价数量',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : 0
										}
									},
									{
										field: 'infFirstUnitPrice',
										title: '报价单价',
										width: 100,
										formatter: function (val, rec) {
											return rec.infFirstNum ? (Number(rec.infFirstTotalPrice) / Number(rec.infFirstNum)).toFixed(2) : 0
										}
									},
									{
										field: 'infLastTotalPrice',
										title: '中标金额',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val.toLocaleString()) : 0
										}
									},
									{
										field: 'infNum',
										title: '中标数量',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : 0
										}
									},
									{
										field: 'infUnitPrice',
										title: '中标单价',
										width: 100,
										formatter: function (val, rec) {
											return rec.infNum ? ((rec.infLastTotalPrice ? Number(rec.infLastTotalPrice) : 0) / Number(rec.infNum)).toFixed(2) : 0
										}
									},
									{
										field: 'infTransportCost',
										title: '运费金额',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : 0
										}
									},
									{
										field: 'infTransportPrice',
										title: '运费净水价',
										width: 100,
										formatter: function (val, rec) {
											return rec.infNum ? (rec.infTransportCost / Number(rec.infNum).toFixed(2)) : 0
										}
									}, {
										field: 'inqOfrTime',
										title: '提交时间',
										op: ['less', 'greater'],
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : ''
										}
									},
									{
										field: 'inqStartTime',
										title: '报价开始时间',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : ''
										}
									},
									{
										field: 'inqEndTime',
										title: '报价结束时间',
										width: 100,
										formatter: function (val, rec) {
											return val ? unescape(val) : ''
										}
									}, {
										field: 'createTime',
										title: '创建时间',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}, {
										field: 'createName',
										title: '创建人',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}

									}, {
										field: 'updateName',
										title: '修改人',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}, {
										field: 'updateTime',
										title: '修改时间',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}

									}, {
										field: 'status',
										title: '状态',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}, {
										field: 'remark',
										title: '备注',
										sortable: true,
										formatter: function (val, rec) {
											return val ? unescape(val) : '';
										}
									}
									]],
									// toolbar: [{
									// 	text: '增加',
									// 	iconCls: 'icon-add',
									// 	handler: function () {
									// 		$('#fm').form('clear');
									// 		$('#add').window('open');
									// 	}
									// },
									// 	'-',
									// {
									// 	text: '编辑',
									// 	iconCls: 'icon-edit',
									// 	handler: function () {
									// 		editrow()
									// 	}
									// },
									// 	'-',
									// {
									// 	text: '删除',
									// 	iconCls: 'icon-cancel',
									// 	handler: function () {
									// 		var row = $('#dg').datagrid(
									// 			'getSelected');
									// 		if (row) {
									// 			$.messager.confirm('提示', '确定要删除这个吗?', function (r) {
									// 				if (r) { del(row); }
									// 			});
									// 		}
									// 	}
									// }],
									onLoadSuccess: function () {
									},
									onDblClickRow: function () {
										// editrow();
									}
								});
							$('#dg').datagrid('enableFilter');
						}

						// 导出为Excel
						function exportInquiryList() {
							let startTime = $('#startTime').datebox('getValue')
							let endTime = $('#endTime').datebox('getValue')
							let status = $('#status').combobox('getValue')
							var form = [];
							form.push('startTime=' + (startTime ? startTime : ''));
							form.push('endTime=' + (endTime ? endTime : ''));
							form.push('status=' + (status ? status : ''));
							let url = 'api/purchase/supply/deal/export'
							let xhr = new XMLHttpRequest()
							xhr.open('POST', url, true)
							xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
							xhr.setRequestHeader('token', localStorage.getItem('token'));
							xhr.setRequestHeader('userType', localStorage.getItem('userType'));
							xhr.responseType = 'blob'
							xhr.onload = function () {
								if (this.status == 200) {
									let blob = this.response
									let reader = new FileReader()
									reader.readAsDataURL(blob)
									reader.onload = function (e) {
										let a = document.createElement('a')
										a.download = '询价供应商' + new Date().getTime() + '.xlsx'
										a.href = e.target.result
										$('body').append(a)
										a.click()
										$(a).remove()
									}
								}
							}
							xhr.send(form.join('&'))
						}
					</script>
					<style scoped="scoped">
						.textbox {
							height: 20px;
							margin: 0;
							padding: 0 2px;
							box-sizing: content-box;
						}

						/*.table tr {
        height: 15px;
    }*/
					</style>
					<div class="query_criteria" id="query_criteria">
						<div style="margin: 5px 0px">
							<%-- 搜索框 --%>
								<label style="font-size: 12px;">创建时间：</label> <input class="easyui-datebox"
									name="startTime" id="startTime"
									data-options="required:true,showSeconds:false,formatter:myformatter,parser:myparser"
									value="" style="width: 150px"> <label style="font-size: 10px;">~</label> <input
									class="easyui-datebox" name="endTime" id="endTime"
									data-options="required:true,showSeconds:false,formatter:myformatter,parser:myparser"
									style="width: 150px" /> <label
									style="margin-left: 20px; font-size: 12px;">状态：</label>
								<input class="easyui-combobox" id="status" name="status" style="width: 80px;"
									data-options="valueField: 'value',editable:false,
						textField: 'label',panelHeight:'auto',data: [{
							label: '全部',
							value: ''
						},{
							label: '待提交',
							value: '0',
							selected:true
						},{
							label: '已提交',
							value: '1'
						},{
							label: '已完成',
							value: '2'
						}]">
								</select> <a id="search" style="margin-left: 30px" href="javascript:void(0)"
									class="easyui-linkbutton" data-options="iconCls:'icon-search'"
									onclick="selectList()">查询</a> <a id="export" href="javascript:void(0)"
									class="easyui-linkbutton" data-options="iconCls:'icon-export'"
									onclick="exportInquiryList()">导出</a>
						</div>

						<table id="dg"></table>

						<div id="add" class="easyui-window" closed="true" modal="true" title="用户信息"
							style="width: 500px; height: 450px; padding: 10px 20px">
							<form id="fm" class="ssec-form">
								<table class="table">
									<tr>
										<td>
											<div class="ssec-label">供应商id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infId" name="infId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">询价id/外部系统id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqId" name="inqId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">询价结果id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="resId" name="resId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">方案id/协议id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="gramId" name="gramId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">是否中选：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="dealIsCheck" name="dealIsCheck" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">供应商名称：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infName" name="infName" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">供应商编码：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infCode" name="infCode" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">采购组：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqGroup" name="inqGroup" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">是否合同：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqIsContract" name="inqIsContract" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">合同起始时间：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqContractStart" name="inqContractStart"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">合同结束时间：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqContractEnd" name="inqContractEnd" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">结算标识：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqIsSettle" name="inqIsSettle" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">是否过磅：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqIsWeight" name="inqIsWeight" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">是否自提：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqIsOwn" name="inqIsOwn" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">付款条款：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqPayment" name="inqPayment" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">币种：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqCurrency" name="inqCurrency" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">税率：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqTax" name="inqTax" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">库存地点：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqStockAddress" name="inqStockAddress"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">免费标记：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqIsFree" name="inqIsFree" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">退货标记：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqBackGood" name="inqBackGood" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">oa审批状态：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqOaStatus" name="inqOaStatus" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">sap审批状态：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqSapStatus" name="inqSapStatus" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">联系人：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infContact" name="infContact" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">联系电话：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infContactTel" name="infContactTel" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">第一次报价：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infFirstTotalPrice" name="infFirstTotalPrice"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">第一次报价数量：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infFirstNum" name="infFirstNum" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">第一次报价单价：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infFirstUnitPrice" name="infFirstUnitPrice"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">最终报价：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infLastTotalPrice" name="infLastTotalPrice"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">中标单价：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infUnitPrice" name="infUnitPrice" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">中标数量：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infNum" name="infNum" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">运费：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infTransportCost" name="infTransportCost"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">运费单价：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="infTransportPrice" name="infTransportPrice"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">create_time：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="createTime" name="createTime" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">create_name：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="createName" name="createName" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">create_id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="createId" name="createId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">update_id：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="updateId" name="updateId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">update_name：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="updateName" name="updateName" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">update_time：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="updateTime" name="updateTime" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">del_flag：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="delFlag" name="delFlag" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">status：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="status" name="status" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">remark：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="remark" name="remark" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">付款条款code：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqPaymentCode" name="inqPaymentCode" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">币种code：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqCurrencyCode" name="inqCurrencyCode"
													class="easyui-textbox" data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">询价名称：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="inqName" name="inqName" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">所属部门：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="deptId" name="deptId" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">所属部门名称：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="deptName" name="deptName" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">询价结果编码/协议订单resid：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="resCode" name="resCode" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
									<tr>
										<td>
											<div class="ssec-label">询价结果编码：</div>
										</td>
										<td>
											<div class="ssec-text normal">
												<input id="resCode1" name="resCode1" class="easyui-textbox"
													data-options="required:true" />
											</div>
										</td>
									</tr>
								</table>
								<div style="padding: 5px; text-align: right;">
									<a class="easyui-linkbutton" onclick="save();" iconcls="icon-save">保存</a>
								</div>
							</form>
						</div>
					</div>
		</body>

		</html>